package com.kgc.entity;

public class Admin {
    private Integer id;

    private String username;

    private String password;

    private String phone;

    private Integer sex;

    private String email;

    private String salt;

    private AdminDesc adminDesc; // 管理员信息描述

    public AdminDesc getAdminDesc() {
        return adminDesc;
    }

    public void setAdminDesc(AdminDesc adminDesc) {
        this.adminDesc = adminDesc;
    }

    public Admin() {
    }

    public Admin(String username, String phone, String email) {
        this.username = username;
        this.phone = phone;
        this.email = email;
    }

    public Admin(String username, String password, String phone, Integer sex, String email, String salt) {
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.sex = sex;
        this.email = email;
        this.salt = salt;
    }

    public Admin(Integer id, String username, String password, String phone, Integer sex, String email, String salt) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.sex = sex;
        this.email = email;
        this.salt = salt;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt == null ? null : salt.trim();
    }
}